package ru.hh.team02.chat.logger;

import java.io.*;

public class HardLogger extends AbstractLogger {
    long time;

    public HardLogger(OutputStream outputStream) {
        super(outputStream);
    }

    public HardLogger(String filepath) {
        super(filepath);
    }

    public void StartTimer() {
        time = -System.currentTimeMillis();
    }

    public void StopTimer() {
        time += System.currentTimeMillis();
    }

    public void StopTimerWrite(String string) throws IOException {
        time += System.currentTimeMillis();
        Write(string + " : " + time);
    }
}
